Skip to content

review-agents.md: trusting the work directory is a change here - #4

Merged
bbondy merged 1 commit into
brave-experiments:mainfrom
netzenbot:docs/trust-workspace-is-ours
Nov 13, 2026
Merged

bbondy merged 1 commit into
brave-experiments:mainfrom
netzenbot:docs/trust-workspace-is-ours

Conversation

@netzenbot

Copy link
Copy Markdown
Collaborator

Docs only. This follows up #3.

Item 2 of "What would close the gap" was wrong. It asked bravebot for a way to read a named directory as trusted. --trust-workspace already does that for the working directory. The reviewer just points it at the bot directory, and reaches the work directory through --add-dir, which vouches for nothing (CLI-11, TRUST-26). Each PR's worktree sits at <work>/<pr>/source, so starting the session in the work directory with --trust-workspace would trust everything the review reads. That's a change in this repo, not in bravebot.

It only matters once bypass is gone. Bypass trusts the workspace and vouches for every read anyway (MODE-4). Moving the trust today would change nothing, so this PR has no code change.

Weakness 4 corrected. For the same reason, it no longer calls --trust-workspace a condition of the widened writes. Bypass trusts the working directory with or without the flag.

What's left on bravebot's side:

  • a one-shot mode where a refusal lets the run continue;
  • --run-network closed that can still start python3 on Linux.

Testing: not run, since only docs/review-agents.md changed and no test reads it.

Item 2 of "What would close the gap" asked bravebot for a way to read a
named directory as trusted. --trust-workspace already does that for the
working directory, and each PR's worktree is inside the work directory.
So the fix is on this side: start the session in the work directory and
reach the bot directory through --add-dir. That only matters once bypass
is gone, since bypass trusts the workspace and vouches for every read
(MODE-4).

For the same reason, weakness 4 no longer calls --trust-workspace a
condition of the widened writes. Bypass trusts the working directory with
or without the flag.
@bbondy
bbondy merged commit 4576dc7 into brave-experiments:main Nov 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants